home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_08_09
/
8n09129a
< prev
next >
Wrap
Text File
|
1990-07-26
|
786b
|
30 lines
/********************************************
CHEESE.C - a program to invoke the
cheese knowledge base
********************************************/
#include <stdio.h>
#include "pcxpro.h"
main()
{
int cf; /* confidence factor for result */
char value[80]; /* contains the return string value
from the consultation */
if(load_knowledge_base("cheese.kb"))
/* if success in loading */
solve_for("CHEESE",
/* the goal for this consultation */
'B', /* inference method, backward for this ex. */
value, /* string for the returned result */
&cf); /* confidence factor for result */
printf("The cheese recommended for this consultation
is %s\n", value);
}